
import java.util.*;

import java.lang.*;
import net.fortuna.ical4j.data.CalendarOutputter;
import net.fortuna.ical4j.model.DateTime;
import net.fortuna.ical4j.model.Recur;
import net.fortuna.ical4j.model.ValidationException;
import net.fortuna.ical4j.model.WeekDay;
import net.fortuna.ical4j.model.component.VEvent;
import net.fortuna.ical4j.model.property.CalScale;
import net.fortuna.ical4j.model.property.ProdId;
import net.fortuna.ical4j.model.property.RRule;
import net.fortuna.ical4j.model.property.Uid;
import net.fortuna.ical4j.model.property.Version;
import net.fortuna.ical4j.util.UidGenerator;


public class Test {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		//Palm palm = new Palm();
		
		//setting time zone
		TimeZone tz = TimeZone.getTimeZone("US/Hawaii");
		//creating the starting time for event
		Calendar startCalendar = new GregorianCalendar(tz);
				//Calendar.getInstance(tz);
		
		
		
		startCalendar.set(Calendar.MONTH, Calendar.AUGUST);
		startCalendar.set(Calendar.DAY_OF_MONTH, 14);
		startCalendar.set(Calendar.HOUR, 10);
		startCalendar.set(Calendar.MINUTE, 00);
		startCalendar.set(Calendar.SECOND, 00);
		startCalendar.set(Calendar.AM_PM, Calendar.AM);
		
		//end time for event
		Calendar endCalendar = new GregorianCalendar(tz);
		
		
		
		endCalendar.set(Calendar.MONTH, Calendar.AUGUST);
		endCalendar.set(Calendar.DAY_OF_MONTH, 14);
		endCalendar.set(Calendar.HOUR, 1);
		endCalendar.set(Calendar.MINUTE, 00);
		endCalendar.set(Calendar.SECOND, 00);
		endCalendar.set(Calendar.AM_PM, Calendar.PM);
		
		String eventName = "Final Exam";
		//DateTime start = new DateTime(startDate.getTime());
		//DateTime end = new DateTime(endDate.getTime());
		VEvent meeting = new VEvent(start, end, eventName);
		
		//vEvent meeting = new vEvent();
		
		System.out.print(startCalendar.getTime());
		System.out.print(endCalendar.getTime());
		
	}

}
